<?php
/**
 * 数据库参数配置
 *host 数据库地址
 *user 数据库名
 *pass 数据库密码localhost »shanghu »generals
 *dbname 数据库表名
 */
$MySql['host']		= 'localhost';
$MySql['user']		= 'km1';
$MySql['pass']		= '123456';
$MySql['dbname']	= 'km1';
//商户数据库连接
$conn = mysqli_connect($MySql['host'],$MySql['user'],$MySql['pass'],$MySql['dbname'])or die("JaneOS：错误代码：1");

/*** 支付宝参数配置 ***/
//商户中读取支付宝数据
$jane 		= mysqli_query($conn,'SELECT * FROM generals WHERE `id` = 1');
$janedata	= mysqli_fetch_assoc($jane);
$alipay_config['user']		= 		'xinka';//$janedata['alipayuser'];				//卖家账户
$alipay_config['partner']	= 		'12300187';//$janedata['alipaypid'];					//卖家PID
$alipay_config['key'] 		= 		'2d2d0f10-4615-491b-852b-4285c5b3355a';//$janedata['alipaykey'];					//KEY密匙
$alipay_config['janeos'] 	= 		$janedata['alipayfee'];					//分润手续费
//以下参数不需修改
$alipay_config['sign_type'] 	= strtoupper('MD5');
$alipay_config['input_charset'] = strtolower('utf-8');
$alipay_config['cacert'] 	= getcwd().'\\cacert.pem';
$alipay_config['transport'] 	= 'http';


/*** QQ互联配置参数 ***/
//商户中读取QQ互联数据
$janeqq = array(
	'appid'		=> $janedata['qqappid'], 										//申请到的appid
	'appkey'	=> $janedata['appkey'],											//申请到的appkey
	'callback'	=> "http://".$janedata['callback']."/api/qq/qq_callback.php",	//回调地址
	'scope'		=> "get_user_info,add_share,list_album,add_album,upload_pic,add_topic,add_one_blog,add_weibo"	//QQ授权api接口
);

/*** 点卡兑换配置参数 ***/
//商户中读取QQ互联数据
$Card = array(
	'dkusername'=> $janedata['dkusername'], 									//点卡兑换（商户会员号）
	'dkkey'		=> $janedata['dkkey'],											//点卡兑换（商户密钥）
	'dkurl'	=> $janedata['dkurl'],											//点卡兑换（回调地址）
);

/*** 财付通配置参数 ***/
//商户中读取财付通数据
$paycft = array(
	'payuser'	=> $janedata['payuser'], 										//卖家账户
	'paykey'	=> $janedata['paykey'],											//KEY密匙
	'payfee'	=> $janedata['payfee'],											//分润手续费
);

/*** 微信配置参数 ***/
//商户中读取财付通数据
$wxinfo = array(
	'wxuser'	=> $janedata['wxuser'], 										//微信商户账号
	'wxkey'		=> $janedata['wxkey'],											//微信商户密钥
	'wxfee'		=> $janedata['wxfee'],											//微信手续费
	'url'		=>'https://pay.swiftpass.cn/pay/gateway',
	'version'	=>'1.0'
);

/*** 手Q配置参数 ***/
//商户中读取手机Q数据
$handq = array(
	'handqid'	=> $janedata['handqid'], 										//手Q商户账号
	'handqkey'	=> $janedata['handqkey'],										//手Q商户密钥
	'handfee'	=> $janedata['handfee'],										//手Q手续费
	'handurl'	=> $janedata['handurl']										    //手Q提交地址
);


/*** 支付宝扫码配置参数 ***/
//商户中读取支付宝扫码数据
$Alipay = array(
	'zfbsmuser'	=> $janedata['zfbsmuser'], 										//支付宝扫码商户账号
	'zfbsmkey'	=> $janedata['zfbsmkey'],										//支付宝扫码商户密钥
	'zfbsmfee'	=> $janedata['zfbsmfee'],										//支付宝扫码手续费
	'url'		=>'https://pay.swiftpass.cn/pay/gateway',
	'version'	=>'1.0'
);
?>